var http =  require("http");

var onRequest = function(req, res){
	res.writeHead(200,{"Content-Type": "text/html"});
	res.end("Hello, Node.js");
}

var server = http.createServer(onRequest);
server.listen(8888);

console.log("Your server is started @http://localhost:8888");



